package com.ssm.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssm.dao.ContactsDao;
import com.ssm.model.Contacts;
import com.ssm.service.ContactsService;

@Transactional
@Service("contactsService")
public class ContactsServiceImpl implements ContactsService {

	@Autowired
	public ContactsDao contactsDao;

	public List<Contacts> findAllContacts() {

		return contactsDao.findAllContacts();
	}

	public void contacts_zj(Contacts c) {

		contactsDao.contacts_zj(c);
	}

	public List<Contacts> findAllContacts1(int shou, int wei) {

		return contactsDao.findAllContacts1(shou, wei);
	}

	public void contacts_xg(Contacts c) {

		contactsDao.contacts_xg(c);
	}

	public Contacts findcontactsById(int a) {

		return contactsDao.findContactsById(a);
	}

	public void contacts_sc(int a) {

		contactsDao.contacts_sc(a);
	}

	public List<Contacts> findAllContacts2(int shou, int wei, int id) {
		// TODO Auto-generated method stub
		return contactsDao.findAllContacts2(shou, wei, id);
	}

	public List<Contacts> findAllContactsByCustomerId(int id) {
		// TODO Auto-generated method stub
		return contactsDao.findAllContactsByCustomerId(id);
	}

}
